package com.example.zzh.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zzh.entity.ZzhDepot;
import com.example.zzh.entity.ZzhUser;
import com.example.zzh.mapper.ZzhDepotMapper;
import com.example.zzh.mapper.ZzhUserMapper;
import com.example.zzh.service.ZzhUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 供应商/客户信息表 服务实现类
 * </p>
 *
 * @author zzh
 * @since 2023-07-28
 */
@Service
public class ZzhUserServiceImpl extends ServiceImpl<ZzhUserMapper, ZzhUser> implements ZzhUserService {
    @Resource
    private ZzhUserMapper zzhUserMapper;
    @Override
    public IPage pageName(Page<ZzhUser> page) {
        return zzhUserMapper.pageName(page);
    }

    @Override
    public IPage pageNames(Page<ZzhUser> page, Wrapper wrapper) {
        return zzhUserMapper.pageNames(page,wrapper);
    }

    @Override
    public ZzhUser getById(Long id) {
        return zzhUserMapper.selectById(id);
    }
}
